package cn.itcast.web.controller.email.conusmer;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

public class EmailConsumer {

    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath:spring/applicationContext-email-consumer.xml");
        System.out.println("邮件发送成功。。。");
        context.start();

    }
}
